// logs.js
const util = require('../../utils/util.js')

Page({
  data: {
    logs: [],
    list: [{
      pagePath: "/pages/index/index",
      text: "首页",
    }, {
      pagePath: "/pages/logs/logs",
      text: "工作台",
    },{
      pagePath: "/pages/index/index",
      text: "消息",
    },{
      pagePath: "/pages/index/index",
      text: "我的",
    }],
  },
  onLoad() {
    this.setData({
      logs: (wx.getStorageSync('logs') || []).map(log => {
        return util.formatTime(new Date(log))
      })
    })
  },
  logs:function(e){
    console.log(e)
  }
})
